package springframework.container_di;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import springframework.container_di.core.Notifier;
import springframework.container_di.product.ProductConfig;

public class Main {
    public static void main(String[] args) {
        try (AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(
                ProductConfig.class)) {
            Notifier emailer = ctx.getBean(Notifier.class);
            emailer.send("     test      ");
        }
    }
}
